﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SearchJobseeker.aspx.cs" Inherits="iResume.SearchJobseeker" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style4
        {
            width: 78px;
        }
        .style5
        {
        }
        .style6
        {
            width: 157px;
            text-align: center;
            height: 30px;
        }
        .style7
        {
            width: 281px;
            height: 30px;
            text-align: left;
            font-family: "Century Gothic";
        }
        .style8
        {
            height: 30px;
            text-align: left;
        }
        .style9
        {
            text-align: center;
            height: 30px;
            color: #FF6600;
        }
        .style10
        {
            width: 78px;
            text-align: center;
            color: #FF6600;
        }
        .style11
        {
            width: 281px;
            text-align: left;
            font-family: "Century Gothic";
        }
        .style12
        {
            height: 30px;
            text-align: left;
            width: 19px;
        }
        .style13
        {
            width: 19px;
        }
        .style29
        {
            text-align: left;
            font-size: x-large;
        }
        .style32
        {
            color: #999999;
        }
        .style31
        {
            font-family: "Century Gothic";
            font-weight: bold;
        }
        .style30
        {
            font-family: "Century Gothic";
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width:100%;">
        <tr>
            <td class="style29" colspan="7">
                <span class="style32"><span class="style31">Search</span><span class="style30"> 
                Jobseeker</span></span><hr />
            </td>
        </tr>
        <tr>
            <td class="style9">
                &nbsp;</td>
            <td class="style7">
                <asp:Label ID="Label1" runat="server" ForeColor="Black" 
                    Text="Search by Job Classification" Font-Size="Small"></asp:Label>
                <br />
                <asp:DropDownList ID="DropDownList1" runat="server" style="margin-left: 0px; font-family: 'Century Gothic';" 
                    Width="252px">
                    <asp:ListItem>Information Technology</asp:ListItem>
                    <asp:ListItem>Engineering</asp:ListItem>
                    <asp:ListItem>Business</asp:ListItem>
                    <asp:ListItem>Applied Science</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style12">
                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="Picture/searchbtnn.PNG" 
                    onclick="ImageButton2_Click" style="margin-left: 0px" />
            </td>
            <td class="style8">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style10">
                </td>
            <td class="style11">
            </td>
            <td class="style13">
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td class="style5" colspan="2">
                <asp:GridView ID="jobSeekerGrid" runat="server" 
                    AutoGenerateColumns="False" DataKeyNames="emailAdd" 
                    DataSourceID="SqlDataSource1" BackColor="LightGoldenrodYellow" 
                    BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" 
                    GridLines="None" onrowcommand="jobSeekerGrid_RowCommand">
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:BoundField DataField="fullName" HeaderText="fullName" 
                            SortExpression="fullName" />
                        <asp:BoundField DataField="emailAdd" HeaderText="emailAdd" ReadOnly="True" 
                            SortExpression="emailAdd" />
                        <asp:BoundField DataField="category" HeaderText="category" 
                            SortExpression="category" />
                        <asp:BoundField DataField="profile" HeaderText="profile" 
                            SortExpression="profile" />
                        <asp:BoundField DataField="education" HeaderText="education" 
                            SortExpression="education" />
                        <asp:BoundField DataField="Skills" HeaderText="Skills" 
                            SortExpression="Skills" />
                        <asp:BoundField DataField="workexperience" HeaderText="workexperience" 
                            SortExpression="workexperience" />
                    </Columns>
                    <FooterStyle BackColor="Tan" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                        HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <SortedAscendingCellStyle BackColor="#FAFAE7" />
                    <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                    <SortedDescendingCellStyle BackColor="#E1DB9C" />
                    <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:iResumeConnectionString %>" 
                    onselecting="SqlDataSource1_Selecting" 
                    
                    SelectCommand="SELECT [fullName], [emailAdd], [category], [profile], [education], [Skills], [workexperience] FROM [JobSeeker] WHERE ([category] LIKE '%' + @category + '%')" 
                    OldValuesParameterFormatString="original_{0}">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList1" DefaultValue="%" 
                            Name="category" PropertyName="SelectedValue" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td class="style5">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:ImageButton ID="ImageButton3" runat="server" Height="41px" 
                    ImageUrl="~/Picture/Picture2.png" PostBackUrl="~/recruiterView.aspx" 
                    Width="46px" />
                </td>
            <td class="style5">
                &nbsp;</td>
            <td class="style13">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
